//
//  KYCaipuFirstCollectionCell.m
//  KCZ_B段项目
//
//  Created by dllo on 15/11/3.
//  Copyright © 2015年 Sky. All rights reserved.
//

#import "KYCaipuFirstCollectionCell.h"
#import "FitHeader.h"
#import "FontSizeSingleTon.h"
#define Font [[FontSizeSingleTon shareFontSize]array]
@implementation KYCaipuFirstCollectionCell
-(instancetype)initWithFrame:(CGRect)frame
{//这是collecviewcell的自定义cell厨房宝典 专家说 新手课堂等的自定义cell
    self = [super initWithFrame:frame];
    if (self) {
       
        _typeImage = [[UIImageView alloc]init];
        _typeImage.layer.borderWidth = 2.0 * wt;
        _typeImage.layer.borderColor = [UIColor colorWithRed:0.42 green:0.58 blue:0 alpha:1].CGColor;
        _typeImage.layer.masksToBounds = YES;
        _typeImage.layer.cornerRadius = 5 * wt;
        [self.contentView addSubview:_typeImage];
        
        _titleLabel = [[UILabel alloc]init];
        [self.contentView addSubview:_titleLabel];
    }
    return self;
}
-(void)layoutSubviews
{
    [super layoutSubviews];
    _typeImage.frame = CGRectMake(0, 0, 64 * wt, 64 * ht);
    _titleLabel.frame = CGRectMake(_typeImage.frame.origin.x, _typeImage.frame.size.height + 10 * ht, _typeImage.frame.size.width, 20 * ht);
    _titleLabel.font = [UIFont systemFontOfSize:[Font[1] integerValue]];
    _titleLabel.textAlignment = NSTextAlignmentCenter;
}

@end
